home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-04-15 | 1.1 KB | 30 lines | [TEXT/ToyS] |
- property dMenu : {size:[200, 100], name:"Please Try One", style:movable modal, contents:[¬
- {class:push button, bounds:[10, 70, 190, 90], name:"Goodbye"}, ¬
- {class:push button, bounds:[10, 10, 190, 30], name:"Standard Pop-Up"}, ¬
- {class:push button, bounds:[10, 40, 190, 60], name:"Type-In Pop-Up"}]}
- property theSizes : "9;10;12;14;18;24;36;48"
- property dStdPopUp : {size:[120, 80], contents:[¬
- {class:push button, bounds:[50, 50, 110, 70], name:"OK"}, ¬
- {class:pop up, bounds:[10, 10, 130, 29], contents:theSizes, name:"Size:"}]}
- property dTypeInPopUp : {size:[120, 80], contents:[¬
- {class:push button, bounds:[50, 50, 110, 70], name:"OK"}, ¬
- {class:pop up, bounds:[95, 10, 130, 29], contents:theSizes, text field:3}, ¬
- {class:text field, bounds:[50, 11, 90, 27], name:"Size:", name bounds:[10, 11, 50, 27], value:9}]}
-
- set dVals to [null, null]
-
- dd install with greyscale
- set d to dd make dialog dMenu
- repeat
- set i to dd interact with user
- if i = 2 then
- set item 1 of dVals to dd auto dialog dStdPopUp
- else if i = 3 then
- set item 2 of dVals to dd auto dialog dTypeInPopUp
- else
- exit repeat
- end if
- end repeat
- dd uninstall
-
- dVals